# '123456'  --------》    123456

#  '123456': '1''2''3''4''5''6' --> 1 2 3 4 5 6 --> 123456
#  不能用int()
str1 = '123456'
# from functools import reduce

dictn = False
def fun1(x):
    global dictn
    list1 = ['1','2','3','4','5','6','7','8','9']
    list2 = [1,2,3,4,5,6,7,8,9]
    dict1 = dict(zip(list1,list2))
    dictn = dict1
    return dictn[x]
# print(fun1('2'))
list_int = map(fun1,'123456')
from functools import reduce
res = reduce(lambda x ,y:x*10+y,list_int)
print(res)





